package ui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by qiang.yu on 2017/5/3.
 */
@Controller
@RequestMapping("/study/single")
public class SingleDemoPage {

    @RequestMapping("/demo")
    public ModelAndView getSingleDemo(String demoUrl,String title){
        ModelAndView model = new ModelAndView();
        model.setViewName("singleDemo/index");
        model.addObject("title",title);
        model.addObject("demoName",demoUrl);
        return model;
    }
}
